<!-- ALiWebVideo.html -->
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
    <!-- <link rel="stylesheet" type="text/css" href="../../css/prismplayer_index.css"> -->
    <link rel="stylesheet" type="text/css" href="http://g.alicdn.com/de/prismplayer/1.7.2/skins/default/index-min.css">
	<title>阿里云视频播放器</title>
	<style type="text/css">
		html,body{
			padding: 0;
			margin: 0;
			background-color: rgba(0,0,0,0);
		}
		.player_div{
			background-color: black;
		}
		.close_a{
			position: absolute;
			top: 0;
			right: 0;
			width: 30px;
			height: 30px;
			background-color: rgba(0,0,0,0.3);
			z-index: 99;
		}
		.close_img{
			margin-top: 5px;
			margin-left: 5px;
			width: 20px;
		}
	</style>
</head>
<body>
	<a href="#" class="close_a" onclick="onCloseClick()">
		<img src="../../image/close_video.png" class="close_img">
	</a>
	<div class="player_div prism-player" id="J_prismPlayer"></div>
</body>
<script type="text/javascript" src="../../script/jquery.min.js"></script>
<!-- <script type="text/javascript" src="../../script/prismplayer.min.js"></script> -->
<script type="text/javascript" src="http://g.alicdn.com/de/prismplayer/1.7.2/prism-h5-min.js"></script>
<script type="text/javascript">
	function getCurrentTime(){
		
	}
	apiready = function(){
		var param = api.pageParam;
		var image = param.image;
		if (image == null) {
			image = '';
		}
	 	var width = api.winWidth;
		var height = width * 3 / 4;
		$('.player_div').attr('style', 'width:'+width+'; height:'+height+';');
		var player = new prismplayer({
	        id: "J_prismPlayer",
	        showBarTime: 3000,
	        autoplay: true,
	        rePlay: false,
	        height: height+'px',
	        cover: image
	    });
	    player.loadByUrl(param.videoUrl);   
	}
	function onCloseClick(){
		api.closeFrame();
	}
</script>
</html>